<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>练习</title>
</head>
<body>
<input type="number" id="num" placeholder="请输入周几：">
<button onclick="funA()">提交</button>
</body>
<script>
    /*
        张宗航规划工作日到周末晚上的工作
        工作日：工作
        周末：休息
     */
    function funA() {
        var week = Number(document.getElementById("num").value)

        switch (week) {
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
                console.log("工作日，工作")
                break;
            case 6:
            case 7:
                console.log("周末：睡觉")
                break;
            default:
                console.log("输入有误")
                break


        }
        console.log("程序结束")
    }
</script>
</html>